
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '加盟合同管理',
    enableValidate: true
})

@Injectable()
export class BasicFormViewmodelForm extends Form {
    @NgFormControl({
        id: 'merchantName_9eaa356c_vf24',
        name: "{{merchantName_9eaa356c_vf24}}",
        binding: 'merchantName',
        updateOn: 'blur',
        defaultI18nValue: '商户名称',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    merchantName: FormControl;

    @NgFormControl({
        id: 'merchantCode_6cc321d2_zjjv',
        name: "{{merchantCode_6cc321d2_zjjv}}",
        binding: 'merchantCode',
        updateOn: 'blur',
        defaultI18nValue: '商户编号',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    merchantCode: FormControl;

    @NgFormControl({
        id: 'email_54a8b49e_jwaf',
        name: "{{email_54a8b49e_jwaf}}",
        binding: 'email',
        updateOn: 'blur',
        defaultI18nValue: '邮箱',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    email: FormControl;

    @NgFormControl({
        id: 'telephone_a575436e_nr9d',
        name: "{{telephone_a575436e_nr9d}}",
        binding: 'telephone',
        updateOn: 'blur',
        defaultI18nValue: '联系电话',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    telephone: FormControl;

    @NgFormControl({
        id: 'adminstrator_184469fa_ewfe',
        name: "{{adminstrator_184469fa_ewfe}}",
        binding: 'adminstrator',
        updateOn: 'blur',
        defaultI18nValue: '管理员',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    adminstrator: FormControl;

    @NgFormControl({
        id: 'remark_80b4de1e_r65l',
        name: "{{remark_80b4de1e_r65l}}",
        binding: 'remark',
        updateOn: 'blur',
        defaultI18nValue: '备注',
    })
    remark: FormControl;

}